﻿using Microsoft.EntityFrameworkCore;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace DxfMonitor.Data
{
    public class DbContextOptionsFactory
    {
        public static DbContextOptions<DxfDbContext> Get()
        {
            var builder = new DbContextOptionsBuilder<DxfDbContext>();
            DbContextConfigurer.Configure(
                builder,
                Constants.connectionString);
            return builder.Options;
        }
    }
}
